#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Condition.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Condition)
{

};

FIXTURE(IsGtThan)
{
    TEST(IsGtThan(5)(5.0001) should be true)
    {
        ASSERT_TRUE(IsGtThan<double>(5)(5.0001));

     }

    TEST(IsGtThan(5)(5) should be false)
    {
        ASSERT_FALSE(IsGtThan<double>(5)(5));

     }
};

FIXTURE(IsLsThan)
{
    TEST(IsLsThan(5)(5.0001) should be true)
    {
        ASSERT_TRUE(IsLsThan<double>(5)(4.999999));

    }

    TEST(IsLsThan(5)(5) should be false)
    {
        ASSERT_FALSE(IsLsThan<double>(5)(5));

    }
};

FIXTURE(IsNotGtThan)
{
    TEST(IsNotGtThan(5)(5.0001) should be true)
    {
        ASSERT_TRUE(IsNotGtThan<double>(5)(4.999999));

    }

    TEST(IsNotGtThan(5)(5) should be true)
    {
        ASSERT_TRUE(IsNotGtThan<double>(5)(5));

    }

    TEST(IsNotGtThan(5)(5.000001) should be false)
     {
         ASSERT_FALSE(IsNotGtThan<double>(5)(5.000001));

     }
};


FIXTURE(IsNotLsThan)
{
    TEST(IsNotLsThan(5)(5.0001) should be false)
    {
        ASSERT_FALSE(IsNotLsThan<double>(5)(4.999999));

    }

    TEST(IsNotLsThan(5)(5) should be true)
    {
        ASSERT_TRUE(IsNotLsThan<double>(5)(5));

    }

    TEST(IsNotLsThan(5)(5.000001) should be false)
     {
        ASSERT_TRUE(IsNotLsThan<double>(5)(5.000001));

     }
};
